package com.skyolder.milkbee.repository;

import com.skyolder.milkbee.domain.Follow;

import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the Follow entity.
 */
public interface FollowRepository extends JpaRepository<Follow,Long> {

	List<Follow> findByFromUserIdAndToUserId(Long user1, Long user2);

	List<Follow> findByFromUserId(Long me);

}
